[@@match]

open override fun [@@match](string: String): RegExpMatchArray?(source)

Matches a string with this regular expression, and returns an array containing the results of that search.

MDN Reference

Parameters

string

A string to search within.